﻿miniSched.volunteerModel = function (params) {
    var self = this;
    var params = params || {};

    self.OrganizationId = ko.observable(params.OrganizationId);

    self.FormattedName = ko.observable(params.Formattedname).extend({
        required: true,
        minLength: 3,
        maxLength: 50
    });
    self.EmailAddress = ko.observable(params.EmailAddress).extend({
        email: true
    });

    self.parent.constructor.call(self, params);
};

miniSched.volunteerModel.extend(miniSched.entityModel);

miniSched.volunteerModel.prototype.apiClient = new miniSched.volunteerApiClient();
